# howIsItGoing-v2.py # # Description: Chatbot that asks a user how their day is going, and make # a comment that changes depending on how the user answered. # # Author: Anne Lavergne # Date: M Jan. 15 2024 # Ask user how their day is going # Read user's reply userReply = input("Hey! How's your day going? ").strip().lower() # Some possible replies when all is well! wellResponses = ["great!", "fine!", "good!", "ok!"] # Some possible replies when all is not well! notWellResponses = ['not so good!', 'not so well!', 'terrible!', 'bad!'] # Make comment if user's day is going well if userReply in wellResponses: print("Glad to hear!") print("Mine too!") # Make comment if user's day is not going well elif userReply in notWellResponses: print("Oh! Sorry to hear!") else: # Make another type of comment otherwise print("Oh! I see ... !")